package com.reborn.mall.api.service;

import com.reborn.mall.api.model.dto.OrderDTO;
import com.reborn.mall.api.model.entity.Order;
import com.reborn.mall.api.model.vo.OrderVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * TODO: Here is description
 *
 * @author wu.yue
 * @since 2020/3/12
 */
public interface OrderService extends BaseService<Order> {

    String generateUniqueOrderNumber();

    Order createOrder(OrderDTO orderDTO);

    List<OrderVO> findOrdersByAppUserId(Long appUserId);

    OrderVO findOrderByOrderId(Long orderId);

    int getTotalOrderCountOfDate(String date);

    BigDecimal getTotalSalesAmountOfDate(String date);
}
